package com.kaoshi.myweb.web.entity;

import com.kaoshi.myweb.common.utils.DateUtils;
import com.kaoshi.myweb.web.Constants;
import com.kaoshi.myweb.web.entity.common.AbstractEntity;

import java.util.*;

/**
 * @author ZHOUTIEQIANG053
 * @version 1.0
 * @since  2016-12-11 12:29:30
 * @desc TestBlog
 */
public class TestBlogDTO extends AbstractEntity<Long> {
	
	//columns START

	/** author @Length(max=255)*/
	private String author;
	/** createTime @NotNull */	
	private Date createTime;
	//columns END



	/** author*/
	public void setAuthor(String value) {
		this.author = value;
	}
	
	/** author*/
	public String getAuthor() {
		return this.author;
	}
		
	/** createTime字符格式*/
	public String getCreateTimeString() {
		return DateUtils.formatDate(Constants.DATETIME_DEFAULT_FORMAT, getCreateTime());
	}
	
	/** createTime字符格式*/
	public void setCreateTimeString(String value) {
		setCreateTime(DateUtils.parseDate(Constants.DATETIME_DEFAULT_FORMAT, value));
	}
	

	/** createTime*/
	public void setCreateTime(Date value) {
		this.createTime = value;
	}
	
	/** createTime*/
	public Date getCreateTime() {
		return this.createTime;
	}

	@Override
	public Long getId() {
		return super.id;
	}

	@Override
	public void setId(Long id) {
		super.id = id;
	}
}

